<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>

<s:iterator var="event" value="list">

	<s:url id="urlEdit" action="modul/event/page/edit" escapeAmp="false">
		<s:param name="id" value="id"></s:param>
	</s:url>

	<s:url id="urlConfDel" action="modul/event/page/delete"
		escapeAmp="false">
		<s:param name="id" value="id"></s:param>
	</s:url>

	<s:property value="eventDate" /> - <s:property value="title" /> - <s:property
		value="location" /> - <s:property value="content" />

	<sj:a href="%{urlEdit}" id="edit%{id}" targets="resultTarget"
		cssClass="btn btn-primary" onClickTopics="buttonClick">Edit</sj:a> | 
		
		
		<sj:a href="%{urlConfDel}" id="confirm%{id}" targets="resultTarget"
		cssClass="btn btn-primary" onClickTopics="buttonClick">Delete</sj:a>

	<br />
</s:iterator>

<s:url id="urlAdd" action="modul/event/page/add" />
<sj:a id="add" href="%{urlAdd}" targets="resultTarget"
	indicator="indicator" button="true" cssClass="btn"
	onClickTopics="buttonClick">Tambah Event
		</sj:a>

<div class="pagination">
	<ul>
		<s:iterator id="pager" end="total" begin="1" step="1">
			<s:url id="pageUrl" action="modul/event/list/paging"
				escapeAmp="false">
				<s:param name="_search">true</s:param>
				<s:param name="rows">
					<s:property value="rows" />
				</s:param>
				<s:param name="page">
					<s:property />
				</s:param>
				<s:param name="sord">
					<s:property value="sord" />
				</s:param>
				<s:param name="sidx">
					<s:property value="sidx" />
				</s:param>
			</s:url>
			<li><sj:a href="%{pageUrl}" targets="resultTarget">
					<s:property />
				</sj:a></li>
		</s:iterator>
	</ul>
</div>